import request from '@/utils/request'

const addressApi = {
  // 退货地址列表
  getAddressList: (params) => {
    return request({
      url: '/chain/promotion/activity/page',
      method: 'GET',
      params
    })
  },
  // 退货地址详情
  getAddressDetail: (addressId) => {
    return request({
      url: `/chain/promotion/activity/page?id=${addressId}`,
      method: 'GET'
    })
  },
}

export default addressApi